/*
 * Created by IntelliJ IDEA.
 * User: amrk
 * Date: 3/04/2004
 * Time: 15:21:59
 */
package com.talios.jira.feeds;


public abstract class ProjectFeedBuilder extends AbstractFeedBuilder {


    /**
     * @jira INTPLUG-4 Support for Multiple Projects
     */
    protected StringBuffer getBaseBuffer(boolean includeUserDetails) {
        StringBuffer buf = super.getBaseBuffer(includeUserDetails);

        buf.append("&pid=");
        buf.append(projectDetails.getProjectId());

        if (!"-1".equals(projectDetails.getComponentId()) && !"".equals(projectDetails.getComponentId())) {
            buf.append("&component=");
            buf.append(projectDetails.getComponentId());
        }

        return buf;
    }

}